package com.pets.service;

import com.pets.entity.Users;
import com.baomidou.mybatisplus.extension.service.IService;
import com.pets.utils.Result;
import com.pets.viewModels.UsersViewModels;

import javax.servlet.http.HttpSession;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author 啦啦啦
 * @since 2024-04-09
 */
public interface IUsersService extends IService<Users> {

    Result login(String username, String password, HttpSession session);

    Result register(UsersViewModels users);

    Result deleteById(Integer id);

    Result updateData(Users users);

    Result selectById(Integer id);

    Result selectPage(Integer page, Integer pageSize, String username, String nickname, String mailbox, String phone, Boolean isDisable);

    boolean isIntegral(Integer userId);
}
